package com.yuju.group.dao.entity;

import com.yuju.persist.base.entity.BaseEntity;
import java.io.Serializable;
import java.util.Date;

public class SeqCode extends BaseEntity implements Serializable {
    /**
     *  主键。存储UUID，由应用生成。,所属表字段为grp_seq_code.id
     */
    private String id;

    /**
     *  编码类型。序列编码的类型。,所属表字段为grp_seq_code.type
     */
    private String type;

    /**
     *  名称。,所属表字段为grp_seq_code.name
     */
    private String name;

    /**
     *  长度。编码的长度。,所属表字段为grp_seq_code.length
     */
    private Integer length;

    /**
     *  前缀。序列编码的前缀。,所属表字段为grp_seq_code.prefix
     */
    private String prefix;

    /**
     *  后缀。序列编码的后缀。,所属表字段为grp_seq_code.suffix
     */
    private String suffix;

    /**
     *  序列编码。当前序列编号。,所属表字段为grp_seq_code.seq_code
     */
    private Long seqCode;

    /**
     *  所属集团。外键，引用集团信息表（grp_group）的主键（id）。,所属表字段为grp_seq_code.group_id
     */
    private String groupId;

    /**
     *  酒店ID。外键，引用酒店表（grp_hotel）的主键（id）。,所属表字段为grp_seq_code.hotel_id
     */
    private String hotelId;

    /**
     *  是否总部。2表示不是总部，为普通分店；1表示是总部。默认是2。,所属表字段为grp_seq_code.is_group
     */
    private Byte isGroup;

    /**
     *  是否逻辑删除。1表示已逻辑删除，2表示未逻辑删除，默认为2。,所属表字段为grp_seq_code.is_deleted
     */
    private Byte isDeleted;

    /**
     *  创建时间。,所属表字段为grp_seq_code.gmt_create
     */
    private Date gmtCreate;

    /**
     *  修改时间。,所属表字段为grp_seq_code.gmt_modified
     */
    private Date gmtModified;

    /**
     *  是否按日期重置：1是，2否,所属表字段为grp_seq_code.is_reset_for_date
     */
    private Byte isResetForDate;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public Long getSeqCode() {
        return seqCode;
    }

    public void setSeqCode(Long seqCode) {
        this.seqCode = seqCode;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getHotelId() {
        return hotelId;
    }

    public void setHotelId(String hotelId) {
        this.hotelId = hotelId;
    }

    public Byte getIsGroup() {
        return isGroup;
    }

    public void setIsGroup(Byte isGroup) {
        this.isGroup = isGroup;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Byte getIsResetForDate() {
        return isResetForDate;
    }

    public void setIsResetForDate(Byte isResetForDate) {
        this.isResetForDate = isResetForDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", name=").append(name);
        sb.append(", length=").append(length);
        sb.append(", prefix=").append(prefix);
        sb.append(", suffix=").append(suffix);
        sb.append(", seqCode=").append(seqCode);
        sb.append(", groupId=").append(groupId);
        sb.append(", hotelId=").append(hotelId);
        sb.append(", isGroup=").append(isGroup);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", isResetForDate=").append(isResetForDate);
        sb.append("]");
        return sb.toString();
    }
}